import request from "@/utils/request";



export function upload(data) {
  return request({
    url: "/upload/img",
    method: "post",
    data,
  });
}

export function login(data) {
  return request({
    url: "/api/login",
    method: "post",
    data,
  });
}



export function reg(data) {
  return request({
    url: "/api/reg",
    method: "post",
    data,
  });
}

export function codeLogin(data) {
  return request({
    url: "/api/codelogin",
    method: "post",
    data,
  });
}


export function getCode(data) {
  return request({
    url: "/getcode",
    method: "post",
    data,
  });
}


export function getConfig(data) {
  return request({
    url: "/api/config/load",
    method: "post",
    data,
  });
}

export function findPass(data) {
  return request({
    url: "/api/findpass",
    method: "post",
    data,
  });
}


export function getTq(data) {
  return request({
    url: "/tq",
    method: "post",
    data,
  });
}



export function getTqList(data) {
  return request({
    url: "/tq/list",
    method: "post",
    data,
  });
} 
